package gwt.trading.client;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author Iulian Costan (iulian.costan@gmail.com)
 *
 */
public class StockQuote implements IsSerializable {

	private int index;
	private Date date;
	private float open;
	private float close;
	private float high;
	private float low;
	private long volume;
	private long value;
	private long transactions;

	public StockQuote() {
		// keep GWT happy
	}

	public StockQuote(int index, float open, float high, float low, float close, long volume) {
		this.index = index;
		this.open = open;
		this.high = high;
		this.low = low;
		this.close = close;
		this.volume = volume;
	}
	
	public StockQuote(int index, Date date, float open, float high, float low, float close, long volume) {
		this.index = index;
		this.date = date;
		this.open = open;
		this.high = high;
		this.low = low;
		this.close = close;
		this.volume = volume;
	}

	public float getClose() {
		return close;
	}

	public void setClose(float close) {
		this.close = close;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public float getHigh() {
		return high;
	}

	public void setHigh(float high) {
		this.high = high;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public float getLow() {
		return low;
	}

	public void setLow(float low) {
		this.low = low;
	}

	public float getOpen() {
		return open;
	}

	public void setOpen(float open) {
		this.open = open;
	}

	public long getTransactions() {
		return transactions;
	}

	public void setTransactions(long transactions) {
		this.transactions = transactions;
	}

	public long getValue() {
		return value;
	}

	public void setValue(long value) {
		this.value = value;
	}

	public long getVolume() {
		return volume;
	}

	public void setVolume(long volume) {
		this.volume = volume;
	}

}
